#ifndef GETDATABASESETTINGS_H
#define GETDATABASESETTINGS_H

#include <QDialog>

namespace Ui {
    class GetDatabaseSettings;
}

class GetDatabaseSettings : public QDialog
{
    Q_OBJECT

public:
    explicit GetDatabaseSettings(QWidget *parent = 0);
    ~GetDatabaseSettings();
    Q_PROPERTY(QString Host READ getHost WRITE setHost)
    Q_PROPERTY(QString Database READ getDatabase WRITE setDatabase)
    Q_PROPERTY(QString User READ getUser WRITE setUser)
    Q_PROPERTY(QString Password READ getPassword WRITE setPassword)

    QString getHost()
    {
        return Host;
    }

    void setHost(QString value)
    {
        Host=value;
    }


    QString getDatabase()
    {
        return Database;
    }

    void setDatabase(QString value)
    {
        Database=value;
    }



    QString getUser()
    {
        return User;
    }

    void setUser(QString value)
    {
        User=value;
    }

    QString getPassword()
    {
        return Password;
    }

    void setPassword(QString value)
    {
        Password=value;
    }
private slots:
    void on_buttonBox_accepted();

private:
    Ui::GetDatabaseSettings *ui;

    QString Host;
    QString Database;
    QString User;
    QString Password;
};

#endif // GETDATABASESETTINGS_H
